The shouldShowSessionMenu function has a few bugs in it.
This fixes them.
https://bugzilla.gnome.org/show_bug.cgi?id=706153
},
_shouldShowSessionMenuButton: function() {
- if (this._authPrompt.verifyingUser)
- return true;
-
- if (!this._user)
+ if (this._authPrompt.verificationStatus != AuthPrompt.AuthPromptStatus.VERIFYING)
return false;
- if (this._user.is_logged_in)
+ if (this._user && this._user.is_logged_in())
return false;
return true;